﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once

#include"GcmpDwgDxfInterface.h"
#include "Color.h"
#include <string>

namespace gcmp
{
    class UniIdentity;

    /// \brief  填充设置接口类
    class GCMP_DWG_DXF_INTERFACE_EXPORT IHatchSettings
    {
    public:
        virtual ~IHatchSettings();
        /// \brief 创建填充设置对象
        /// 
        /// 创建的填充设置对象默认填充程度是50，填充类型是无
        /// \return 填充设置对象
        static OwnerPtr<IHatchSettings> Create();

        /// \brief 设置填充类型
        ///
        /// 填充类型默认为无
        /// \param hatchType 填充类型
        /// \return 返回true表示设置成功，否则设置失败
        virtual bool SetHatchType(const std::wstring& hatchType) = 0;

        /// \brief 获得填充类型
        ///
        /// \return 填充类型
        virtual std::wstring GetHatchType() const = 0;

        /// \brief 设置填充程度
        ///
        /// 填充程度默认是50
        /// \param hatchScale 填充程度
        /// \return 返回true表示设置成功，否则设置失败
        virtual bool SetHatchScale(double hatchScale) = 0;

        /// \brief 获得填充程度
        ///
        /// \return 填充程度
        virtual double  GetHatchScale() const = 0;

        /// \brief 设置填充角度
        ///
        /// 填充程度默认是50
        /// \param hatchAngle 填充角度
        virtual void SetHatchAngle(double hatchAngle) = 0;

        /// \brief 获得填充角度
        ///
        /// \return 填充角度
        virtual double GetHatchAngle() const = 0;

        // \brief 设置填充颜色
        ///
        /// \param hatchColor 填充颜色
        virtual void SetHatchColor(Color hatchColor) = 0;

        /// \brief 获得填充颜色
        ///
        /// \return 填充颜色
        virtual Color GetHatchColor() const = 0;

        /// \brief 克隆填充设置对象
        ///
        /// \return 填充设置对象
        virtual OwnerPtr<IHatchSettings> Clone() const = 0;
    };
}

